<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/pages/web/products.js"></script>
</head>
<style>
h1 {
	margin-top: 0px
}

.btnControl {
	float: left
}

.btnControl div {
	display: inline
}

.errors {
	color: red
}
</style>
<body style="margin: 0">
	<s:if test="%{customer.id!=0}">
		<h1 style="text-align: left; color: #FF6600">
			注册成功
			<hr></hr>
		</h1>
		<div
			style="width: 100%; text-align: center; font-weight: bolder; font-size: 14px; color: blue">
			用户名
			<s:property value="customer.name" />
			(帐号：
			<s:property value="customer.username" />
			)注册成功！

		</div>
	</s:if>
	<s:else>
		<h1 style="text-align: left; color: #FF6600">
			注册新用户
			<hr></hr>
		</h1>
		<div width="100%">
			<s:if test="hasActionErrors()">
				<div class="errors">
					<s:actionerror />
				</div>
			</s:if>
			<div style="margin: auto; margin-left: 10%">
				<s:form method="post" namespace="/webview">
					<s:token />
					<s:hidden key="customer.id"></s:hidden>
					<s:textfield key="customer.name" autocomplete="off" required="true" />
					<s:textfield key="customer.username" autocomplete="off"
						required="true" />
					<s:textfield key="customer.password" autocomplete="off"
						required="true" />
					<sj:datepicker key="customer.birthday" displayFormat="yy-mm-dd" />
					<s:radio key="customer.gender" list="genderMap" />
					<s:textfield key="customer.email" autocomplete="off"
						required="true" />
					<s:textfield key="customer.address" autocomplete="off" />
					<s:textfield key="customer.mobilePhone" autocomplete="off"
						required="true" />
					<div class="btnControl">
						<s:submit key="common.text.register" cssClass="btn1"
							action="webview!register" />
						<s:reset key="common.text.reset" cssClass="btn1"></s:reset>
					</div>
				</s:form>
			</div>
		</div>
	</s:else>

</body>
</html>